package com.johnny.xia.util.http;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author johnnyxia
 *
 */
public class HttpClientCommand implements Serializable{

	/**
	 *
	 */
	private static final long serialVersionUID = 3595422515133388126L;

	private String	url;

	private Map<String,String>	paramMap = new HashMap<>();

	private String	type;

	public void putParam(String key,String value){
		paramMap.put(key,value);
	}

	public HttpClientCommand(){

	}

	public HttpClientCommand(String url){
		this.url = url;
	}

	public HttpClientCommand(String url,Map<String,String> paramMap){
		this.url = url;
		this.paramMap = paramMap;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, String> getParamMap() {
		return paramMap;
	}

	public void setParamMap(Map<String, String> paramMap) {
		this.paramMap = paramMap;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


}
